<form name="editForm" role="form" novalidate (ngSubmit)="save()" #editForm="ngForm">

    <div class="modal-header">
        <h4 class="modal-title" id="myCyclePlanLabel">Create or edit a Cycle Plan</h4>
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"
                (click)="clear()">&times;</button>
    </div>
    <div class="modal-body">
        <jhi-alert-error></jhi-alert-error>
        <div class="form-group" [hidden]="!cyclePlan.id">
            <label for="id">ID</label>
            <input type="text" class="form-control" id="id" name="id"
                   [(ngModel)]="cyclePlan.id" readonly />
        </div>
        <div class="form-group">
            <label class="form-control-label" for="field_kindId">Kind Id</label>
            <input type="number" class="form-control" name="kindId" id="field_kindId"
                [(ngModel)]="cyclePlan.kindId"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" for="field_subType">Sub Type</label>
            <input type="number" class="form-control" name="subType" id="field_subType"
                [(ngModel)]="cyclePlan.subType"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" for="field_allTime">All Time</label>
            <input type="text" class="form-control" name="allTime" id="field_allTime"
                [(ngModel)]="cyclePlan.allTime"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" for="field_startTime">Start Time</label>
            <input type="number" class="form-control" name="startTime" id="field_startTime"
                [(ngModel)]="cyclePlan.startTime"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" for="field_endTime">End Time</label>
            <input type="number" class="form-control" name="endTime" id="field_endTime"
                [(ngModel)]="cyclePlan.endTime"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" for="field_name">Name</label>
            <input type="text" class="form-control" name="name" id="field_name"
                [(ngModel)]="cyclePlan.name"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" for="field_data">Data</label>
            <input type="text" class="form-control" name="data" id="field_data"
                [(ngModel)]="cyclePlan.data"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" for="field_content">Content</label>
            <input type="text" class="form-control" name="content" id="field_content"
                [(ngModel)]="cyclePlan.content"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" for="field_winTimes">Win Times</label>
            <input type="text" class="form-control" name="winTimes" id="field_winTimes"
                [(ngModel)]="cyclePlan.winTimes"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" for="field_alwaysFail">Always Fail</label>
            <input type="number" class="form-control" name="alwaysFail" id="field_alwaysFail"
                [(ngModel)]="cyclePlan.alwaysFail"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" for="field_alwaysWin">Always Win</label>
            <input type="number" class="form-control" name="alwaysWin" id="field_alwaysWin"
                [(ngModel)]="cyclePlan.alwaysWin"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" for="field_isWin">Is Win</label>
            <input type="number" class="form-control" name="isWin" id="field_isWin"
                [(ngModel)]="cyclePlan.isWin"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" for="field_date">Date</label>
            <input type="text" class="form-control" name="date" id="field_date"
                [(ngModel)]="cyclePlan.date"  />
        </div>

    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal" (click)="clear()">
            <span class="fa fa-ban"></span>&nbsp;<span>Cancel</span>
        </button>
        <button type="submit" [disabled]="editForm.form.invalid || isSaving" class="btn btn-primary">
            <span class="fa fa-save"></span>&nbsp;<span>Save</span>
        </button>
    </div>
</form>
